<?php

error_reporting(E_ALL);

/**
 * Cegelec 2 Renewed - class.Locatie.php
 *
 * $Id$
 *
 * This file is part of Cegelec 2 Renewed.
 *
 * Automatically generated on 11.06.2015, 10:40:20 with ArgoUML PHP module 
 * (last revised $Date: 2010-01-12 20:14:42 +0100 (Tue, 12 Jan 2010) $)
 *
 * @author firstname and lastname of author, <author@example.org>
 */

if (0 > version_compare(PHP_VERSION, '5')) {
    die('This file was generated for PHP 5');
}

/**
 * include Cursusblok_Controle
 *
 * @author firstname and lastname of author, <author@example.org>
 */
//require_once('Cursusblok/class.Controle.php');

/* user defined includes */
// section -84-19-69-71-760cb3f:14bee879415:-8000:0000000000000C7C-includes begin
require_once FILE_DB_LOCATIE;
// section -84-19-69-71-760cb3f:14bee879415:-8000:0000000000000C7C-includes end

/* user defined constants */
// section -84-19-69-71-760cb3f:14bee879415:-8000:0000000000000C7C-constants begin
// section -84-19-69-71-760cb3f:14bee879415:-8000:0000000000000C7C-constants end

/**
 * Short description of class Locatie
 *
 * @access public
 * @author firstname and lastname of author, <author@example.org>
 */
class Locatie
    //extends Cursusblok_Controle
{
    // --- ASSOCIATIONS ---


    // --- ATTRIBUTES ---

    /**
     * Short description of attribute locatie_id
     *
     * @access public
     * @var integer
     */
    public $locatie_id = null;

    /**
     * Short description of attribute locatie_naam
     *
     * @access public
     * @var string
     */
    public $locatie_naam = '';

    /**
     * Short description of attribute locatie_actief
     *
     * @access public
     * @var string
     */
    public $locatie_actief = '';

    /**
     * Short description of attribute locatie_beschrijving
     *
     * @access public
     * @var string
     */
    public $locatie_beschrijving = '';

    // --- OPERATIONS ---

    /**
     * Short description of method __construct
     *
     * @access public
     * @author firstname and lastname of author, <author@example.org>
     * @return mixed
     */
    public function __construct()
    {
        // section -84-19-69-71-760cb3f:14bee879415:-8000:0000000000000C86 begin
        
        // section -84-19-69-71-760cb3f:14bee879415:-8000:0000000000000C86 end
    }

    /**
     * Short description of method createLocatie
     *
     * @access public
     * @author firstname and lastname of author, <author@example.org>
     * @param  locatie
     * @return mixed
     */
    public function createLocatie($locatie)
    {
        // section -84-19-69-71-760cb3f:14bee879415:-8000:0000000000000C88 begin
        $this->setLocatieNaam($locatie['locatie_naam']);
        $this->setLocatieBeschrijving($locatie['locatie_beschrijving']);
        
        $dblocatie = new dbLocatie();
        $dblocatie->addLocatieDb($this);
        // section -84-19-69-71-760cb3f:14bee879415:-8000:0000000000000C88 end
    }

    /**
     * Short description of method updateLocatie
     *
     * @access public
     * @author firstname and lastname of author, <author@example.org>
     * @return mixed
     */
    public function updateLocatie($locatie, $id)
    {
        // section -84-19-69-71-760cb3f:14bee879415:-8000:0000000000000C8A begin
        $this->setLocatieId($id);
        $this->setLocatieNaam($locatie['locatie_naam']);
        $this->setLocatieBeschrijving($locatie['locatie_beschrijving']);
        
        $dblocatie = new dbLocatie();
        $dblocatie->updateLocatieDb($this);
        // section -84-19-69-71-760cb3f:14bee879415:-8000:0000000000000C8A end
    }

    /**
     * Short description of method deleteLocatie
     *
     * @access public
     * @author firstname and lastname of author, <author@example.org>
     * @return mixed
     */
    public function deleteLocatie()
    {
        // section -84-19-69-71-760cb3f:14bee879415:-8000:0000000000000C8C begin
        // section -84-19-69-71-760cb3f:14bee879415:-8000:0000000000000C8C end
    }

    /**
     * Short description of method getLocatieId
     *
     * @access public
     * @author firstname and lastname of author, <author@example.org>
     * @return mixed
     */
    public function getLocatieId()
    {
        // section -84-19-69-71-760cb3f:14bee879415:-8000:0000000000000C8E begin
        return $this->locatie_id;
        // section -84-19-69-71-760cb3f:14bee879415:-8000:0000000000000C8E end
    }

    /**
     * Short description of method getLocatieNaam
     *
     * @access public
     * @author firstname and lastname of author, <author@example.org>
     * @return mixed
     */
    public function getLocatieNaam()
    {
        // section -84-19-69-71-760cb3f:14bee879415:-8000:0000000000000C90 begin
        return $this->locatie_naam;
        // section -84-19-69-71-760cb3f:14bee879415:-8000:0000000000000C90 end
    }

    /**
     * Short description of method getLocatieStatus
     *
     * @access public
     * @author firstname and lastname of author, <author@example.org>
     * @return mixed
     */
    public function getLocatieStatus()
    {
        // section -84-19-69-71-760cb3f:14bee879415:-8000:0000000000000C92 begin
        // section -84-19-69-71-760cb3f:14bee879415:-8000:0000000000000C92 end
    }

    /**
     * Short description of method getLocatieList
     *
     * @access public
     * @author firstname and lastname of author, <author@example.org>
     * @return mixed
     */
    public function getLocatieList()
    {
        // section -84-19-69-71-760cb3f:14bee879415:-8000:0000000000000C94 begin
        $db  = new dbLocatie();
        return $db->getLocatieListDb();
        // section -84-19-69-71-760cb3f:14bee879415:-8000:0000000000000C94 end
    
    }
    /**
     * Short description of method getLocatieById
     *
     * @access public
     * @author firstname and lastname of author, <author@example.org>
     * @return mixed
     */
    public function getLocatieById($id)
    {
        // section -84-19-69-71-760cb3f:14bee879415:-8000:0000000000000C96 begin
        $db =  new dbLocatie();
        return $db->getLocatieByIdDb($id);
        // section -84-19-69-71-760cb3f:14bee879415:-8000:0000000000000C96 end
    }

    /**
     * Short description of method setLocatieId
     *
     * @access public
     * @author firstname and lastname of author, <author@example.org>
     * @param  locatie_id
     * @return mixed
     */
    public function setLocatieId($locatie_id)
    {
        // section -84-19-69-71-760cb3f:14bee879415:-8000:0000000000000C98 begin
        $this->locatie_id =  $locatie_id;
        // section -84-19-69-71-760cb3f:14bee879415:-8000:0000000000000C98 end
    }

    /**
     * Short description of method setLocatieNaam
     *
     * @access public
     * @author firstname and lastname of author, <author@example.org>
     * @param  locatie_naam
     * @return mixed
     */
    public function setLocatieNaam($locatie_naam)
    {
        // section -84-19-69-71-760cb3f:14bee879415:-8000:0000000000000C9A begin
        $this->locatie_naam = $locatie_naam;
        // section -84-19-69-71-760cb3f:14bee879415:-8000:0000000000000C9A end
    }

    /**
     * Short description of method setLocatieActief
     *
     * @access public
     * @author firstname and lastname of author, <author@example.org>
     * @param  locatie_actief
     * @return mixed
     */
    public function setLocatieActief($locatie_actief)
    {
        // section -84-19-69-71-760cb3f:14bee879415:-8000:0000000000000C9C begin
        $this->locatie_actief = $locatie_actief;
        // section -84-19-69-71-760cb3f:14bee879415:-8000:0000000000000C9C end
    }

    /**
     * Short description of method setLocatieBeschrijving
     *
     * @access public
     * @author firstname and lastname of author, <author@example.org>
     * @param  locatie_beschrijving
     * @return mixed
     */
    public function setLocatieBeschrijving($locatie_beschrijving)
    {
        // section -84-19-89-32-74b3831b:14de1c2e4bd:-8000:0000000000000E7F begin
        $this->locatie_beschrijving =  $locatie_beschrijving;
        // section -84-19-89-32-74b3831b:14de1c2e4bd:-8000:0000000000000E7F end
    }

    /**
     * Short description of method getLocatieBeschrijving
     *
     * @access public
     * @author firstname and lastname of author, <author@example.org>
     * @return mixed
     */
    public function getLocatieBeschrijving()
    {
        // section -84-19-89-32-74b3831b:14de1c2e4bd:-8000:0000000000000E86 begin
        return $this->locatie_beschrijving;
        // section -84-19-89-32-74b3831b:14de1c2e4bd:-8000:0000000000000E86 end
    }

} /* end of class Locatie */

?>